Skip to content
This repository has been archived by the owner on Oct 23, 2019. It is now read-only.

Fix 'NoneType' guess_extension exception #88

Merged
merged 2 commits into from
Oct 9, 2018
Merged

Fix 'NoneType' guess_extension exception #88

merged 2 commits into from
Oct 9, 2018

Conversation

brokeyourbike
Copy link
Contributor

For the issue #87

Copy link
Collaborator

@Lonami Lonami left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would rather get the mimetype for the empty string '' over 'None'. I don't think str(mime) is the way to go. Maybe a simple if not mime: return '.bin' or no extension at all.

I'm not sure if this is the right way to fix this, coz I don't have such experience in python.
@brokeyourbike
Copy link
Contributor Author

I'm not sure if this is the right way to fix this, coz I don't have such experience in python. Please take a look.

@Lonami Lonami merged commit f4e009b into expectocode:master Oct 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants